package com.huawei.hms.support.api.push.c.b;

import android.content.Context;
import com.huawei.hms.support.api.push.c.a.a.a;
import o.awa.b;

public abstract class c {
    private static byte[] a(byte[] bArr, byte[] bArr2) {
        int i = 0;
        if (bArr == null || bArr2 == null || bArr.length == 0 || bArr2.length == 0) {
            return new byte[0];
        }
        int length = bArr.length;
        if (length != bArr2.length) {
            return new byte[0];
        }
        byte[] bArr3 = new byte[length];
        while (i < length) {
            bArr3[i] = (byte) (bArr[i] ^ bArr2[i]);
            i++;
        }
        return bArr3;
    }

    private static byte[] a(byte[] bArr) {
        int i = 0;
        if (bArr == null || bArr.length == 0) {
            return new byte[0];
        }
        while (i < bArr.length) {
            bArr[i] = (byte) (bArr[i] >> 2);
            i++;
        }
        return bArr;
    }

    public static byte[] a(Context context) {
        byte[] a = a.a(context.getString(b.ˊ));
        byte[] a2 = a.a(context.getString(b.ˏ));
        return a(a(a(a, a2), a.a(a())));
    }

    private static String a() {
        return "2A57086C86EF54970C1E6EB37BFC72B1";
    }
}
